package io.jee.runshan.filter;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

public class WebSiteMeshFilter extends ConfigurableSiteMeshFilter {

	@Override
	protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
		builder.addDecoratorPath("/admin/*", "/WEB-INF/decorator/admin-decorator.jsp");
		builder.addDecoratorPath("/index", "/WEB-INF/decorator/admin-decorator.jsp");
		builder.addDecoratorPath("/web/*", "/WEB-INF/decorator/web-decorator.jsp");
	}

}
